package com.joyson.app.module.home;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.joyson.app.R;
import com.joyson.app.common.ui.SimpleFragment;
import com.joyson.app.jni.JniLib;
import com.joyson.app.utils.L;

import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * @author joyson
 * @create 2018-10-26
 */
public class HomeLeftFragment extends SimpleFragment {

    private static HomeLeftFragment instance;
    Unbinder unbinder;

    public static HomeLeftFragment getInstance() {
        if (instance == null) {
            instance = new HomeLeftFragment();
        }
        return instance;
    }

    @Override
    protected void initEventAndData() {

    }

    @Override
    protected int getContentView() {
        return R.layout.fragment_home_left;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick(R.id.tv_click_jni)
    public void onViewClicked() {
        L.e("点击jni--------");
        JniLib.loginForRakNet();
    }
}
